<!-- IF S_NEW_TOPIC -->
<script type="text/javascript">// <![CDATA[
var u_similar_search = '{U_SIMILAR_SEARCH}';
// ]]>
</script>
<script src="{PPKBB3CKER_ADDONS}js/SimilarTopicSearchFunction.js" type="text/javascript"></script>
<tr id="similar_row" style="display:none;">
	<td class="row2" style="padding:0" colspan="2" id="similar_table"></td>
</tr>
<script type="text/javascript">// <![CDATA[
var similar_table = getElement("similar_table");
var similar_row = getElement("similar_row");
var liveSearch = new LiveSearch(document.forms.postform.subject, similar_table, similar_row);
// ]]>
</script>
<!-- ENDIF -->
<!-- IF .similar -->
	<table class="tablebg" width="100%" cellspacing="1">
	<tr>
		<th width="4%" nowrap="nowrap">&nbsp;</th>
		<th colspan="2" nowrap="nowrap">&nbsp;{L_SIMILAR_TOPICS}&nbsp;</th>
		<th nowrap="nowrap">&nbsp;{L_AUTHOR}&nbsp;</th>
		<th nowrap="nowrap">&nbsp;{L_REPLIES}&nbsp;</th>
		<th nowrap="nowrap">&nbsp;{L_VIEWS}&nbsp;</th>
		<th nowrap="nowrap">&nbsp;{L_LAST_POST}&nbsp;</th>
	</tr>
	<!-- BEGIN similar -->
		<tr valign="middle">
			<td class="row1" width="25" align="center">{similar.TOPIC_FOLDER_IMG}</td>
			<td class="row1" width="25" align="center">
			<!-- IF similar.TOPIC_ICON_IMG -->
				<img src="{T_ICONS_PATH}{similar.TOPIC_ICON_IMG}" width="{similar.TOPIC_ICON_IMG_WIDTH}" height="{similar.TOPIC_ICON_IMG_HEIGHT}" alt="" title="" />
			<!-- ENDIF -->
			</td>
			<td class="row1">
				<a href="{similar.U_VIEW_TOPIC}" class="topictitle">{similar.TOPIC_TITLE}</a>
				<!-- IF similar.PAGINATION -->
					<p class="gensmall"> [ {GOTO_PAGE_IMG}{L_GOTO_PAGE}: {similar.PAGINATION} ] </p>
				<!-- ENDIF -->
				<!-- IF similar.S_TOPIC_GLOBAL -->
					<p class="gensmall">{L_GLOBAL}</p>
				<!-- ELSE -->
					<p class="gensmall">{L_IN} <a href="{similar.U_VIEW_FORUM}">{similar.FORUM_TITLE}</a></p>
				<!-- ENDIF -->
			</td>
			<td class="row2" width="100" align="center"><p class="topicauthor"><!-- IF similar.U_TOPIC_AUTHOR --><a href="{similar.U_TOPIC_AUTHOR}">{similar.TOPIC_AUTHOR}</a><!-- ELSE -->{similar.TOPIC_AUTHOR}<!-- ENDIF --></p></td>
			<td class="row1" width="50" align="center"><p class="topicdetails">{similar.TOPIC_REPLIES}</p></td>
			<td class="row2" width="50" align="center"><p class="topicdetails">{similar.TOPIC_VIEWS}</p></td>
			<td class="row1" width="120" align="center">
				<p class="topicdetails">{similar.LAST_POST_TIME}</p>
				<p class="topicdetails"><!-- IF similar.U_LAST_POST_AUTHOR --><a href="{similar.U_LAST_POST_AUTHOR}">{similar.LAST_POST_AUTHOR}</a><!-- ELSE -->{similar.LAST_POST_AUTHOR}<!-- ENDIF -->
					<a href="{similar.U_LAST_POST}">{LAST_POST_IMG}</a>
				</p>
			</td>
		</tr>
	<!-- END similar -->
	</table>
<!-- ENDIF -->
